{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block title %}
    <title>ORATK</title>
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">编辑阀值信息</h2>
        <form class="form-horizontal" action="{{ request.path }}" method="post">
            <div class="form-group" style="display: none">
                <label class="col-sm-2 control-label">id：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="width:300px;" readonly="readonly" name="id"
                           value={{ edit_res.id }}>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">名称：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="width:300px;" readonly="readonly" name="add_name"
                           value={{ edit_res.monitor_name }}>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">阀值：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="width:300px;" placeholder="阀值" name="add_limit"
                           value="{{ edit_res.limit_values }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="width:300px;" name="add_monitor_type"
                           value="{{ edit_res.monitor_type }}" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" style="width:300px;" placeholder="描述" name="add_remark"
                           value="{{ edit_res.remark }}">
                </div>
            </div>
            <div class="col-sm-10">
                <div style="text-align:center;vertical-align:middle;">
                    <button type="submit" class="btn ">提交</button>
                </div>
            </div>
        </form>
    </div>
{% endblock %}